<html>
<head>
<meta HTTP-EQUIV=CONTENT-TYPE CONTENT="text/html; charset=utf-8">
<title>Slide 24</title>
</head>
<body>
<center>
<a href="text0.html">First page</a> <a href="text22.html">Back</a> <a href="text24.html">Continue</a> <a href="text82.html">Last page</a> <a href="whatswrong.html">Overview</a> <a href="img23.html">Graphics</a></center><br>
<h1><b>Java Rules</b></h1><p>
<ul><li><h2>Not thread safe</h2>
<li><h2>Classes do not implement Serializable; use XML.</h2>
<li><h2>Classes do not implement Cloneable; use copy constructors.</h2>
<li><h2>Lack of generics really hurts in the Collections API. Hence, don't use it.</h2>
<li><h2>Problems detectable in testing throw  runtime exceptions</h2>
<li><h2>Assertions that can be turned off are pointless</h2>
</ul></body>
</html>